package {
   import mx.controls.List;
   import mx.core.EdgeMetrics;
   import mx.core.ScrollPolicy;
   
   public class MyList extends List {
      public var skinBorder:Object;
      
      public function MyList() {
         super();
      }
      
      
      override public function get viewMetrics():EdgeMetrics { 
         var vScrollBarWidth:int;
         if (verticalScrollPolicy == ScrollPolicy.AUTO && verticalScrollBar && verticalScrollBar.visible) 
            vScrollBarWidth = this.verticalScrollBar.width;
         return new EdgeMetrics(skinBorder[0],skinBorder[1],skinBorder[2]+vScrollBarWidth,skinBorder[3]);
      } 
      
   }
}